package com.czxy.domain;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class Cat {


    @PostConstruct
    public  void  init(){

       // System.out.println("猫 生");
    }
    public  void  eat(){

        //System.out.println("猫 吃");
    }

    @PreDestroy
    public  void  destroy(){

        //System.out.println("猫 死");
    }

}
